package com.zy.explore.db.interfaces.facade.example;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.zy.explore.db.domain.mybatis.dao.MpExampleDao;
import com.zy.explore.db.domain.mybatis.entity.MpExampleEntity;
import com.zy.explore.db.infrastructure.constant.ExampleRouter;
import com.zy.explore.db.infrastructure.constant.Router;
import com.zy.explore.db.interfaces.assembler.MpExampleAssembler;
import com.zy.explore.db.interfaces.feign.base.MpExampleFeign;
import com.zy.explore.db.interfaces.frm.CommonIdFrm;
import com.zy.explore.db.interfaces.frm.CommonIdsFrm;
import com.zy.explore.db.interfaces.frm.ExampleQueryFrm;
import com.zy.explore.db.interfaces.frm.ExampleSaveFrm;
import com.zy.explore.db.interfaces.vo.ExampleVO;
import com.zy.explore.db.interfaces.vo.PageVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * description mybatis-plus示例Facade
 *
 * @author 🇨🇳中国印🇨🇳
 * @date 2022年02月16日 20:30:10
 */
@Api(tags = "SQL变换测试")
@RestController
@RequestMapping(ExampleRouter.MP_EXAMPLE_ROUTER)
public class MpExampleFacadeExt {

    @Resource
    private MpExampleDao mpExampleDao;

    @ApiOperationSupport(order = 10, author = "🇨🇳中国印🇨🇳")
    @ApiOperation("测试接口")
    @PostMapping("/test")
    public List<MpExampleEntity> test() {
        return mpExampleDao.customSelect();
    }
}
